<!-- 统一布局文件 -->
<?php
use yii\helpers\Url;
use app\assets\WebAsset;
WebAsset::register($this);
$upload_config=Yii::$app->params['upload'];
?>
<?php $this->beginPage();?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>管理后台</title>
<?php $this->head();?>
</head>

<body>
<?php $this->beginBody();?>
	<div id="wrapper">
	    <nav class="navbar-default navbar-static-side" role="navigation">
	        <div class="sidebar-collapse">
	            <ul class="nav metismenu" id="side-menu">
	                <li class="nav-header">
	                    <div class="profile-element text-center">
	                        <img alt="image" class="img-circle" src="/admin/web/images/web/logo.png" />
	                        <p class="text-muted">编程浪子</p>
	                    </div>
	                    <div class="logo-element">
	                        <img alt="image" class="img-circle" src="/admin/web/images/web/logo.png" />
	                    </div>
	                </li>
	                <li class="dashboard">
	                    <a href="<?php echo Url::to(['/web/dashboard/index']);?>">
                            <i class="fa fa-dashboard fa-lg"></i>
	                        <span class="nav-label">仪表盘</span>
                        </a>
	                </li>
	                <li class="account">
	                    <a href="<?php echo Url::to(['/web/account/index']);?>">
	                    <i class="fa fa-user fa-lg"></i> 
	                    <span class="nav-label">账号管理</span>
	                    </a>
	                </li>
	                <li class="brand">
	                    <a href="<?php echo Url::to(['/web/brand/info']);?>">
	                    <i class="fa fa-cog fa-lg"></i> 
	                    <span class="nav-label">品牌设置</span>
	                    </a>
	                </li>
	                <li class="book">
	                    <a href="<?php echo Url::to(['/web/book/index']);?>">
	                    <i class="fa fa-book fa-lg"></i> 
	                    <span class="nav-label">图书管理</span>
	                    </a>
	                </li>
	                <li class="member">
	                    <a href="<?php echo Url::to(['/web/member/index']);?>">
	                    <i class="fa fa-group fa-lg"></i> 
	                    <span class="nav-label">会员列表</span>
	                    </a>
	                </li>
	                <li class="finance">
	                    <a href="<?php echo Url::to(['/web/finance/index']);?>">
	                    <i class="fa fa-rmb fa-lg"></i> 
	                    <span class="nav-label">财务管理</span>
	                    </a>
	                </li>
	                <li class="market">
	                    <a href="<?php echo Url::to(['/web/qrcode/index']);?>">
	                    <i class="fa fa-share-alt fa-lg"></i> 
	                    <span class="nav-label">营销渠道</span>
	                    </a>
	                </li>
	                <li class="stat">
	                    <a href="<?php echo Url::to(['/web/stat/index']);?>">
	                    <i class="fa fa-bar-chart fa-lg"></i> 
	                    <span class="nav-label">统计管理</span>
	                    </a>
	                </li>
	            </ul>
	        </div>
	 	</nav>
		<div id="page-wrapper" class="gray-bg" style="background-color:#ffffff;">
			<div class="row border-bottom">
	            <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
	                <div class="navbar-header">
	                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="javascript:void(0);">
	                    <i class="fa fa-bars"></i> 
	                    </a>
	                </div>
	                <ul class="nav navbar-top-links navbar-right">
	                    <li>
							<span class="m-r-sm text-muted welcome-message">欢迎使用编程浪子图书商城管理后台
	                        </span>
	                    </li>
	                    <li class="hidden">
	                        <a class="count-info" href="javascript:void(0);">
	                            <i class="fa fa-bell"></i>
	                            <span class="label label-primary">8</span>
	                        </a>
	                    </li>
	                    <li class="dropdown user_info">
	                        <a  class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0);">
	                            <img alt="image" class="img-circle" src="/admin/web/images/web/avatar.png" />
	                        </a>
	                        <ul class="dropdown-menu dropdown-messages">
	                            <li>
	                                <div class="dropdown-messages-box">
	                                    姓名：编程浪子郭大爷
                                        <a href="<?php echo Url::to(['/web/user/edit']);?>" class="pull-right">编辑</a>
	                                </div>
	                            </li>
	                            <li class="divider"></li>
	                            <li>
	                                <div class="dropdown-messages-box">
	                                手机号码：11012345679            </div>
	                            </li>
	                            <li class="divider"></li>
	                            <li>
	                                <div class="link-block text-center">
	                                    <a class="pull-left" href="/web/user/reset-pwd">
	                                    <i class="fa fa-lock"></i> 修改密码
	                                    </a>
	                                    <a class="pull-right" href="<?php echo Url::to(['/web/user/login-out'])?>">
	                                    <i class="fa fa-sign-out"></i> 退出
	                                    </a>
	                                </div>
	                            </li>
	                        </ul>
	                    </li>
	                </ul>
	            </nav>
	        </div>
	        <!-- 加载不同的页面布局 -->
	        <?=$content;?>
		</div>
	</div>
<div class="hidden_layout_wrap hide">
    <input type="hidden" name="upload_config" value='<?php echo json_encode($upload_config);?>'>
</div>
<?php $this->endBody();?>
</body>
</html>
<?php $this->endPage();?>